const { http } = uni.$u
// ============== 充电管家========================
// 充电管家 - 获取当前正在充电的订单记录
export const chargePileQueryApi = params => http.get('/park/charge-record/executory', { params })
// 充值 
export const chargeRechargeMoneyApi = params => http.post('/park/charge-balance-record/recharge', params)
// 开始充电
export const chargePileStartApi = params => http.post('/park/charge-pile/start/charge', params)
// 请求停止充电
export const chargePileStopApi = params => http.post('/park/charge-pile/stop/charge', params)
//获取用户余额
export const chargeBalanceApi = params => http.get('/park/charge-balance/detail', params)
// 获取当前充电实时状态 
export const chargePileQueryChargeApi = params => http.get('/park/charge-pile/query/charge', { params })

//根据充电设备接口信息查询充电桩信息
export const chargeStationEquipmentApi = params => http.get('/park/charge/station/charge-station-equipment',{ params })
/**获取充电桩信息*/
export const chargePileStationInfo = params => http.get('/park/charge/station/list/all', params)
// 获取充电桩时段费用
export const chargeTimePriceApi = params => http.get('/park/charge/station/time-price', { params })
// 获取设备分组统计列表
export const chargeEquipmentGroupingListApi = params => http.get('/park/charge/station-equipment-grouping/list/statistic', { params })
// 获取充电订单
export const chargeRecordDetailSepApi = params => http.get('/park/charge-record/detail-seq', { params })

// 查询白名单
export const chargeWhitelistOneselfApi = params => http.get('/park/charge-whitelist/oneself', { params })